import { createRouter, createWebHashHistory } from "vue-router"

import Home from "@/views/Home"
import Detail from "@/views/Detail"

const webHash = createWebHashHistory()
const router = createRouter({
    history: webHash,
    routes: [
        {
            path: "/",
            component: Home,
            name: "home"
        },
        {
            path: "/detail/:id",
            component: Detail,
            name: "detail",
            props: true
        }
    ]
})

export default router